package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface LeaveApplicationMapper {
    void add(LeaveApplication data);

    void update(LeaveApplication data);

    List<SelectResult> select();

    Page<LeaveApplicationVO> getList(LeaveApplicationDTO data);

    boolean exist(@Param("id") Integer id);

    Integer getstate(Integer id);

    void setState(Integer state,Integer id);

    List<beginEndTime> getBeginEndTime(String employeeNum, Date lastMonthFirstDate, Date lastMonthEndDate);

    boolean isAllMonthLeave(String employeeNum, Date lastMonthFirstDate, Date lastMonthEndDate);

}
